//
//  MoreRadioHeadView.swift
//  FM
//
//  Created by x on 2017/11/6.
//  Copyright © 2017年 HLB. All rights reserved.
//

import UIKit

class MoreRadioHeadView: HomeTableHeadView {

    var headIndex:Int? {
        didSet{
            switch headIndex! {
            case 1:
                markLable.backgroundColor = UIColor.yellow
                titleLable.text = "新晋主播"
                moreButton.isHidden = false
                moreButton.setTitle("更多主播", for: UIControlState.normal)
                
            case 2:
                markLable.backgroundColor = UIColor.red
                titleLable.text = "热门主播"
                moreButton.isHidden = true
            default:
                break
            }
        }
    }
    
    override func moreDataBtuClick() {
        delegate?.moreBtuDidClick(currentIndex: headIndex!)
    }

}
